import 'package:flutter/material.dart';
import 'package:xview/components/xDropdown.dart';
import 'package:xview/components/xNavbar.dart';

class dropdown extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _dropdownState();
  }
}

class _dropdownState extends State<dropdown> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: XNavbar(
        title: '下拉菜单',
        elevation: 1
      ).render(context),
      body: Container(
        child: Stack(
          children: [
            Positioned(
              top: 0,
              left: 0,
              child: XDropdown(
                children: [],
                finish: (){},
                resert: (){},
              ),
            ),
          ],
        ),
      ),
    );
  }
}
